package com.bdqn.t350.service;

import com.bdqn.t350.dao.UserDao;
import com.bdqn.t350.pojo.User;
import org.apache.log4j.Logger;

public class UserServiceImp implements UserService {

   // Logger logger = Logger.getLogger(UserServiceImp.class);

    UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    //@Override 重写 代表这个方法必须是重写父类的方法
    @Override
    public void saveService(User user) {
     //   logger.info("aaaaaaaaaaaaaaa");
        //System.out.println(1/0);
        userDao.save(user);
    }
}
